package gui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JPanel;
import javax.swing.JTextField;

/**
 * Generiert ein Panel für Geburtstagstermine
 * 
 * @author Michi
 * 
 */
public class GebTerminPanel extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8475177624163428586L;
	private JTextField birthdayNameTextField;
	private String panelType;
	private Object terminArt;

	/**
	 * Create the panel.
	 */
	public GebTerminPanel() {
		setBackground(new Color(255, 255, 204));
		setSize(new Dimension(350, 40));
		setPreferredSize(new Dimension(350, 40));
		setMinimumSize(new Dimension(350, 40));
		setMaximumSize(new Dimension(350, 40));
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[] { 0, 0 };
		gridBagLayout.rowHeights = new int[] { 0, 0 };
		gridBagLayout.columnWeights = new double[] { 1.0, Double.MIN_VALUE };
		gridBagLayout.rowWeights = new double[] { 0.0, Double.MIN_VALUE };
		setLayout(gridBagLayout);

		birthdayNameTextField = new JTextField();
		birthdayNameTextField.setFont(new Font("Lucida Grande", Font.BOLD, 14));
		birthdayNameTextField.setDisabledTextColor(Color.BLACK);
		birthdayNameTextField.setEnabled(false);
		birthdayNameTextField.setEditable(false);
		birthdayNameTextField.setPreferredSize(new Dimension(14, 40));
		birthdayNameTextField.setMaximumSize(new Dimension(2147483647, 38));
		birthdayNameTextField.setMinimumSize(new Dimension(14, 38));
		GridBagConstraints gbc_birthdayNameTextField = new GridBagConstraints();
		gbc_birthdayNameTextField.fill = GridBagConstraints.BOTH;
		gbc_birthdayNameTextField.gridx = 0;
		gbc_birthdayNameTextField.gridy = 0;
		add(birthdayNameTextField, gbc_birthdayNameTextField);
		birthdayNameTextField.setColumns(10);

	}

	public JTextField getBirthdayNameTextField() {
		return birthdayNameTextField;
	}

	public void setBirthdayNameTextField(JTextField birthdayNameTextField) {
		this.birthdayNameTextField = birthdayNameTextField;
	}

	public String getPanelType() {
		return panelType;
	}

	public void setPanelType(String panelType) {
		this.panelType = panelType;
	}

	public Object getTerminArt() {
		return terminArt;
	}

	public void setTerminArt(Object terminArt) {
		this.terminArt = terminArt;
	}

}
